package com.flyco.modules.stm.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyco.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 打印模板
 * @Author: flyco
 * @Date:   2020-10-27
 * @Version: V1.0
 */
@Data
@TableName("stm_print_template")
@ApiModel(value="stm_print_template对象", description="打印模板")
public class StmPrintTemplate implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private Long id;
	/**模板编码*/
    @ApiModelProperty(value = "模板编码")
	private String code;
	/**模板名称*/
    @ApiModelProperty(value = "模板名称")
	private String name;
	/**模板预览图片*/
    @ApiModelProperty(value = "模板预览图片")
	private String pic;
	/**业务类型：order-销售小票，maintain-维修小票，return-退货小票，exchange-换货小票，pickup-自提小票*/
    @ApiModelProperty(value = "业务类型：order-销售小票，维修小票，return-退货小票，exchange-换货小票，自提小票")
	@Dict(dicCode = "print_template_biz_type")
	private String bizType;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
